﻿<UserControl x:Class="CharacterCreation.Views.CharacterView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Margin="10">

        

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="3*" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBlock Text="Name:"  Grid.Column="0" Grid.Row="0" />
        <TextBox Text="{Binding CurrentCharacter.Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" Grid.Row="0" Height="24" />

        <TextBlock Text="Age:" Margin="5" Grid.Column="0" Grid.Row="1" />
        <TextBox Text="{Binding CurrentCharacter.Age, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" Grid.Row="1" Height="24" />

        <TextBlock Text="Alignment:" Margin="5" Grid.Column="0" Grid.Row="2" />
        <TextBox Text="{Binding CurrentCharacter.Alignment, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" Grid.Row="2" Height="24" />

        <TextBlock Text="Race:" Margin="5" Grid.Column="0" Grid.Row="3" />
        <TextBox Text="{Binding CurrentCharacter.Race.Name}" Grid.Column="1" Grid.Row="3" Height="24" />
        
        <TextBlock Text="Profession:" Margin="5" Grid.Column="0" Grid.Row="4" />
        <TextBox Text="{Binding CurrentCharacter.Profession.Name}" Grid.Column="1" Grid.Row="4" Height="24" />

    </Grid>
</UserControl>
